package com.aw.manual.ejemplo8;

import org.springframework.context.ApplicationContext;
import org.springframework.context.MessageSource;
import org.springframework.core.io.ResourceLoader;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * User: gmc
 * Date: 25/05/2010
 */
@Component
public class Motocicleta {
    @Resource
    private Freno freno;
    @Resource(name = "llantaDeMoto")
    private Llanta llanta;

    private Motor motor;


    @Resource
    private MessageSource messageSource;

    @Resource
    private ResourceLoader resourceLoader;

    @Resource
    private ApplicationContext applicationContext;


    @Resource
    public void setMotor(Motor motor) {
        this.motor = motor;
    }
}
